package com.testjpa.config;

import org.springframework.cloud.client.loadbalancer.LoadBalanced;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.client.RestTemplate;

/**
 * 作者: LCG
 * 日期: 2020/5/23 10:53
 * 描述:
 */

@Configuration
public class TaskMyConfig {


    @Bean
    @LoadBalanced  //配置负载的注解
    public RestTemplate getRestTemplate(){
        return new RestTemplate();
    }

}
